<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>摇号结果 / 新增</h3></div>
                <div class="fr hidden">
                    <form class="search-form" method="post" action="">
                        <input name="field" value="{$filter.field}" type="text" />
                        <input name="value" value="{$filter.value}" type="text" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <div class="fl form-btn-group">
                    <in name="$x|default='01-04-04'" value="$rightsCode">
                        <button onclick="submitForm('add');" class="btn-save btn-highlight">保 存</button>
                        <else />
                        <button disabled="disabled" class="btn-save btn-disable">保 存</button>
                    </in>
                    <span>或</span>
                    <a class="linkBtn btn-abort" href="/admin/lottery/index">放弃</a>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div>
            <form id="lotteryForm" method="post" action="">
                <input type="hidden" name="id" id="id" value="{$lottery.id}" />
                <table class="form">
                    <tr>
                        <th width="15%">摇号批次<span class="hint">*</span></th>
                        <td width="35%">
                            <select name="batch_id">
                                <option value="">-- 请选择摇号批次 --</option>
                                <volist name="batch" id="vo">
                                    <if condition="$vo[id] eq $lottery[batch_id]">
                                        <option selected="selected" value="{$vo.id}">{$vo.name}</option>
                                        <else />
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    </if>
                                </volist>
                            </select>
                        </td>
                        <th width="15%">序号<span class="hint">*</span></th>
                        <td><input name="seq" type="text" value="{$lottery.seq|default='01'}" /> </td>
                    </tr>
                    <tr>
                        <th>房源地址<span class="hint">*</span></th>
                        <td><input type="text" name="house_addr" value="{$lottery.house_addr}" /></td>
                    </tr>
                    <tr>
                        <th>申请人姓名<span class="hint">*</span></th>
                        <td><input name="name" type="text" value="{$lottery.name}" /> </td>
                        <th>申请人身份证<span class="hint">*</span></th>
                        <td><input name="idno" type="text" value="{$lottery.idno}" /> </td>
                    </tr>
                    <tr>
                        <th>配偶姓名</th>
                        <td><input name="name2" type="text" value="{$lottery.name2}" /> </td>
                        <th>配偶身份证</th>
                        <td><input name="idno2" type="text" value="{$lottery.idno2}" /> </td>
                    </tr>
                    <tr>
                        <th>联系电话<span class="hint">*</span></th>
                        <td><input type="text" name="phone" value="{$lottery.phone}" /></td>
                        <th>家庭人口<span class="hint">*</span></th>
                        <td><input type="text" name="jtnum" value="{$lottery.jtnum|default=0}" /></td>
                    </tr>
                    <tr>
                        <th>低保证号</th>
                        <td><input type="text" name="dibaohm" value="{$lottery.dibaohm}" /></td>
                        <th>低保人口<span class="hint">*</span></th>
                        <td><input type="text" name="dibaork" value="{$lottery.dibaork|default=0}" /></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<link type="text/css" href="__JS__/autocomplete2/src/jquery.autocomplete.min.css" rel="stylesheet">
<script src="__JS__/autocomplete2/src/jquery.autocomplete.js" type="text/javascript"></script>
<script>
    $('input[name=house_addr]').autocomplete({
        minChars: 1,
        serviceUrl: '/admin/lottery/ajax_SearchHouseByAddr',
        params: {house: $('input[name=house_addr]').val()},//动态参数值
        paramName: "house"
    });
</script>
<script src="__JS__/lottery.js?v=0.1" type="text/javascript" ></script>
<include file="Public:footer" />
